Free internal singlestep event on shutdown