Improving logging in the deregistration scripts.