Fixed exception handling. 'catch(Exception exception)' must be 'on Exception catch(exception)'