+raquelguimaraes removed unused parameter, set registered contracts to empty instead of nil when unregistering