Hacky workaround for error emails (fixes #116)