Fix network request error listener bug.
Add some samples stuff.