iOS improvements but still has bugs

When pulling out device and sometimes it doesn't want to connect. Also
sometimes throws error when trying to disconnect.