First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
answered Nov 19 '13
I am not quite sure why it does this, but add
app.Destroy()
at the very end of your code and it should work fine.