Close all views on closing a window