check for pickleability before putting values into the queue