Added: state checking and error events
Release v4.17.1