some cleanup and start of an error handler system.