JBIDE-18732 BrowserSim: Closing all shells before engine switching in order to call close listeners in CordovaSim