make sure to set process = null after it's finished