added raspikill failsafe to timelapse captures