Added a section on using PHP's shutdown functions.