Network unit tests now compile and pass (but of course we need way more tests).
Add missing functionality to resend, still not sure when or where this was lost, cleaned up the lack of CloseHandle call as well.