Limit number of threads running ImageMagick at once.  Skip work if connections have closed while waiting.