Test indicating double registration deferred callback when hangup is sent before disconnect.
Make deregister_client idempotent.
Merge branch 'feature/issue-6-fix-double-callback-of-registration-deferred' into develop