Fix logging bug: not exiting if email not passed in.