`cp` does not seem to be defined here.
Shouldn't there be a mechanism to restore the previous classes in case the reload fails.