title: PHP's register_shutdown_function to fire when a script is killed from the command line?
body: <p>Is it possible to invoke a function when a cron process is killed from the command line (via Ctrl+c) or with the kill command?</p>
  
  <p>I have tried <code>register_shutdown_function()</code>, but it doesn't seem to be invoked when the script is killed, but does get invoked when the script ends normally.</p>
  
  <p>I am trying to log the result to a file and update a database value when a cron instance is killed automatically (ie. has been running too long).</p>