HD turning off before plotting is complete, what's happening here?