add a kill method to kill the process if you want to stop web server