When scheduling fails, send an email.

Note that if no email is passed on the command line, no error email will
be sent. I did this to be polite.