Added error event/disconnect for unsupported codec

Closes #23.