Cleanup magic registration process