Notify delegate that window will be closed