Fixed timeout bug in server (didnt close down after set number of
Fixed timeout bug in server