Remove collision with other ffmpeg processes by keeping track of ffmpeg's PID. Send the correct signals to shut down JACK or ffmpeg.