Terminate watchdog if main server crashed (+ minor SMTP fix)

Fixes #25