The workaround for when this happens is to go to Task manager and end the existing Python process, but it would be nice if it didn't happen.