Add additional error handling in for espdy_stream
Make it possible to control logging