on_empty_queue was not being called once the connection gets stablished