extract tutdown to pm-tutdown