FIX: Adding debugging and fixing media-optimization-worker issues (PR #14099)

When we encountered an error with the media-optimization-worker, we stopped the worker, which made it so further messages were not received when optimizing images in parallel. Removed this based on an option.

Also added more debugging lines to help track down issues.

GitHub