fix concurrent bug.
add restart vm mechanism.
fine tune.