It will just flash for a split second and all it does is dispatch readyToClose, so do it directly instead.