removing a faulty attempt to resolve onClosed