Ensure that inline widgets only have onClosed() called once