Fix instances name being renamed even if the process failed