use tail pid to kill

process.kill takes PID as argument. If it is not correct we will kill docker deamon.
using tail PID now and not tail object