Log errors in the console, but keep the event loop alive.
Added some debug info to the selection view.