No guarantee that using a connection after it has been closed will result in a sensible operation, but at least it won't result in a use-after-free memory fault now. Also, this should make this interface relatively safe to use concurrently.