Fix stopping server when not running