Catch both Exceptions and Throwables.