Fix issues with reloading after the process is killed