add exception handling for BuildProj