handle exception for msvs tool