Program is working now, Fixed the problem with closing the connection, after close remaining users get online list, added defense against wrong commands like SEND#MAREK and no message, in this case the message would not be sent