Catch exceptions (maybe this works...)