Called when there is a request to close the window (e.g., from the window manager). A #f return value indicates that the window should not be closed; any other values means that the window can be safely closed.