If you are using VISA to talk on the GPIB bus, then in VISA Advanced is a VISA Close function. If you are not using VISA (direct GPIB) then there should be no need to "close" the GPIB. You should have access to it from the VB program as long as no other program is running and using the GPIB.
Rob