Add listener for onStateChange, handling for ERROR, PENDING and STOPPED. ERROR needs UI. Dryed out closing the widget.