Fixed the problem with canceling a close still closing.