moved error handling code around

error.log is now created always, and the in-window error handling code
is disabled for the time being.