add shutdown method to singlefile classes