Fixed bug in handling of notifications in iOS implementation, added guard against writing to a Client Configuration Descriptor (UUID = 2902).
Improved error handling on iOS and cleaned up code a bit (moved duplicated code to common method).
Updated iOS implementation to handle close and disconnect according to the plugin API specification.