Adding exception handling for theme file watching