review/update sys/ShutdownCallback.php and sys/TryCatch.php