Usually a VPS or cloud will have issues if you close the SSH connection. You can solve this by adding "&" to the end of the command line that starts a server/daemon or whatever.
Example
sudo ./start_server &
You are basically telling bash to start the prog/service and keep it going in the background, then closing the ssh "should" not stop the server