If you listen for the close event inside this method and invoke a callback, it will be a bit more consistent with the other callback-oriented methods