[fix] error handling while connection failed
[feat] added gathering messages to sent within the queue