msg_free memory issue workaround
simple terminal thread

- allows the client to send messages to the server