use sigint , its better than sigkill , because ffmpeg closes the mp4 files so you wont have now no more atom fragments