Added additional error error handling and annotation for GhcModi.