How can I close a window without it doing ANYTHING while it closes??? (It usually shuts another program down.)

Thankyou!

Evan