Changing kill script to be more robust, adding logger