turned amqp_listend into proper daemon