Beautifying mqtt:listen task