closes #14; 'error' event now comes with brand new shiny Error object annotated with 'type'