Is there a way to execute any vb.net code when some type of signal to
die is given?

I found this reference, which may work
http://groups.google.com/group/microsoft.public.dotnet.framework/browse_thread/thread/a85b02458bde3bdb/6941695b36d28b8c?lnk=st&q=Ctrl%2BC+VB.NET&rnum=7#6941695b36d28b8c

But I was looking for a more general solution.

Thanks.

Jay Cox