Made reception non-blocking and improved server-killing
Made quitting program cross-platform

The system("pause") command is not cross-platform.