Prevent start when terminated

Prevent terminate when shutting-down