Closing and deallocating connections

An application calls ct_close to close a connection and ct_con_drop to deallocate a closed connection. It is an error to deallocate a connection that has not been closed.