Allow closing a connection