In TFTPServer/main.cpp, there are several places where CloseHandle() is called, and then ReleaseClient() may be called, which may also do an additional CloseHandle() is the handle is not of value INVALID_HANDLE_VALUE. This may cause a kernel exception on windows/msc builds.