Short sleep added to script after kill and after service start