Reload modules when restarting class