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.
Could we move this into the implementation of `gracefulExit`? We don't use the function anywhere else in the system.