Add pre-start script to add environment variables
Add error message handling to sendmail
Retrying setting env variables at start
Log formatting