Catch server exceptions.