Ensuring that process is killed