We shouldn't actually close anything if promptOnly was specified.  This would also be fixed by moving stuff into doClose() (inside its promptOnly check).