Add error check, matroska handler and disable wordwrap