Remove use of 'finally' clause to ensure better PHP compatibility..