cancelLinger may fail, and if it does, the socket wont be closed, leaving the context_term hanging.
Merge pull request #69 from hammett/master

cancelLinger may fail, and if it does, the socket wont be closed, leavin...