Implemented try/catch flow