Remove errhandler dependency. Closes #1