common interface to kill the server proccess