Catch exceptions in resource init/fin