API now detects if server has stopped.