Capture pid of background process and kill them properly without interfering with other concurrent processes