Update README.md

fix onError funciton.
detach from Storage before connection close.