Close queue in dtor. Fixed mistake in pull_for.