If you are debugging your application, pressing Alt-F4 will kill the CVI debugger which in turn will close your application. When the app is in a bad state (i.e., a hang), closing the app through the user interface by either selecting a menu item or clicking on the X button at the upper-right corner of the window might not have any effect. This is because the user interface is also in a bad state and no callbacks are being properly routed. This is expected behavior. As a result, when your app is in a bad state your only option is to kill the degugger.
Regards,
Azucena