<?php 
register_shutdown_function('shutdown');
function shutdown() {
	global $lock_file;
	
	unlink($lock_file);
}

?>
<?php 
register_shutdown_function('shutdown');
function shutdown() {
	global $lock_file;
	
	if (file_exists($lock_file))
		unlink($lock_file);
}

?>
Check if lock file exists to avoid warnings.
Check if lock file exists to avoid warnings.
