Fixed shutdown sequence for new miabot driver