Try changing the order of close