Under mono on OS X the program just stopped listening on its port immediately, seems we need to sleep() to keep the server thread from being killed