made OnConnectionCloseObserver package internal