added timeout option to queue:listen.