* Don't commit to history on error.
* Progress bar added and collecting layers moved before the dialog appearance.
* Added possibility to cancel lengthy operations.
* Layers collected much faster using low level ActionManager code.