Make sure process output is cleared after process is done