prepare service cleanup