router error listener for requests