Removing the finally block for PHP older versions compliance.