check for current status before starting/stopping server. fixed error wi...

...th id in server creation