Always check server is running before executing a command