When I get this problem, I open another PL/SQL Developer program, open the sessions window and then kill the hung test session. That has always worked as far as I remember. It's still not elegant and it's a hassle, but I don't lose anything else this way.