Fix crash when removing gazebo_controlboard by properly detaching controlboard from wrapper