Catch exceptions inside backend modules.