Added uncaught exception handling and logging