Adding support of the onError feature

Adding a feedback to the mainthread of the application, in order to detect error while instantiate the AudioRecord.