Added binding for window closing