Fix check.
Prevent scripts to leave process behind themselves