Register clean up

@stof Created fabpot/Pimple#154 to track this issue.