Fix GPIO grabbing after stopping monitoring