Not need to call deregister when the status is STATE_REG_PENDING.
Merge pull request #14 from mythfish/master

Not need to call deregister when the status is STATE_REG_PENDING.