cancelLinger may fail, and if it does, the socket wont be closed, leaving the context_term hanging.