Enhance error message handling for the vtshim module.