close shell script when Hybrid is running