Close test mode after each test(even test fail)