Pop the window off the stack before callback