Improved extension detection

Should now detect most of the sub-container formats and will do it for
the decrypted files too.

Fixed closing while a thread is running - a disposed progressBar threw
the error. The program will just terminate instead of displaying an
error message.