now sends a proper email when it gets destroyed. Also appends the error to the log