improve error logging, handle uncaught exception