Implement the CONNECT and SQUIT commands