awaitEvent(): for Integrity, use socketpair() instead of pipe() to implement socket()-aborting mechanism