Add errorDuration option to hide error notice, closes #31