Adding more verbose error handling when launching UI.