Fix a premature exit when reconfiguring