handling IQ for version and time
connection and authentication errors correct handling
stop queue_loop when not connected