resolves #327 graceful shutdown of server

- also inform user how to shutdown the preview server