[arch-projects] [PATCH] shutdown: add a shutdown hook