Added error handling in VBS