add timer to end server process