Separate script for killing process