Graceful handling of parse error. Closes #19