Make sure to explicitly catch all thrown exceptions.