better exit on mail sent and errors