Make the command asynchronous too.
Manage mutex to make connection not parallel to command: command must occurs only when connection is ok. But notbody should be waiting... => so all thread must be synchronized to wait the connection.
Fix some bug with threading.