Fixed CLI version to properly stop the webserver

Fixes #137.