Add sendPing and sendClose