fix a zombie situation with the controller and sending mail