implement / refactor callbacks for abrupt close
should not test against -1 on libuv 1.0.0
s/loop_context/context/g