Fixed exception handler - now sending emails again