Clean up connection class.