Better checking if server is running