Start/stop server in non-UI thread