Fix player cleanup on resource loading failure