I will try it out when I get home from work. I had an old example that was made for WB1.3, they used the exit() function and Storm C could not find a prototype for exit().
The strange thing was that Storm C could not find a prototype for CloseLibrary either. But I will try your example as soon as I get home... :-D