rescue exceptions in http callbacks