rm shutdown method