Enhanced error messages.

* Print stacktraces on exception to cli
* Wrapped lines in UI in case of exception
* removed unused imports