clear errors on save, handle errors on UI thread
clear output only when active
Merge pull request #1 from elsassph/master

Better errors handling (parse errors on the UI thread, clear errors panel on new errors and FileSave)