When a preview was generated and `JPGs` exist at the end, `rmdir` would fail and the script would always exit with that same return code.
When a preview was generated and `JPGs` exist at the end, `rmdir` would fail and the script would always exit with that same return code.