notrix,
I was trying to recreate this problem but all I am getting is to "Session operation has timed out" exception as it was designed.
Can you may be provide a code that you using where you get "Safehandle has been closed" exception?
mikkoljay,
Did you try to compile it in different VS.NET version as it mentions in other thread?
Thanks,
Oleg