Minor bug fixes in new TCP messaging classes