Simplify code
Using pipe
Fix conflicts
Close pair connection on error"
Merge pull request #1 from applidget/fix-semantics

Fix semantics