Modified Connection error handler and used it in Gatt. Fixes #1