Removed race condition when starting and stopping the server a lot of times
Removed race condition when starting and stopping the server a lot of times

rubenfonseca/titanium-webserver,rubenfonseca/titanium-webserver,rubenfonseca/titanium-webserver