Core/NetworkIO: Prevent queueing more async operations when socket is already closed