Remove/close messages and streams in cleanup thread. Still problems with CS and C++ in TestRemoteServerR