send QUEUE_EXIT to callback_loop when connection failed to avoid orphan threads