Fixing bug where the unregister repsonse was not consumed.