Polishes
Fix synchronization bug, add erq/rep tests.
Add tear-down packet processing.