Detect server already started and stopped.