Also reset progress bar data when 'Stop' button is pressed without a running thread. Just in case.
Fix an issue where the 'Stop' button would stay enabled and the 'Merge' button would stay disabled when an error was returned saying the searched directory contains no files.
Add entire for-loop which determines how many output files there will be into the try-catch block rather than only the StreamWriter part.