replaced hard exit with die in system test framework