Add timeout for read/write on clinet. Remove mutex from MFC_UIDlg.cpp.