Removed unnecessary exception nesting.
Removed dead code.
Removed not used exception.
Deleted not used Dailogs (use UI interface for User interaction).
Removed more dead code.