That param is the Board or device descriptor. If a device or an interface is taken offline, the board or device descriptor (ud) is no longer valid. You must execute an ibdev or ibfind to access the board or device again.
Is there an error message associated with the crash? Also this discussion sounds similar to "VB6, W2K, always crashes 2nd time run in VB design mode" http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000EF150000&ECategory=Instrument+Connectivity.GPIB