fixed throw inside 'finally' block