Running an RestRserver on Rstudio crashes the studio and it has be opened back. Running it from shell also has the same problem that you just have to close the entire shell and reopen it.
It is actually very cumbersome. Please at least think about graceful shutdown of the app.