Step 7: closing and deallocating connections

Before exiting, a Monitor Client Library application must: