Catch throwables so stack overflow errors are caught