improvements on expectation times param, added shutdown&reset methods