Emit 'exit' event and transition to standby when app terminates

All connected web clients will show the correct UI state and will display a helpful error.