Cyprus races to avoid financial collapse