Fixed Quake trying to close invalid socket.
Use regular assert macro, redefine it in debug mode, proper failure function.
Include Common.h where needed.