handling process end on integration tests.