animation and try/catch block