Update README.md

Added exception handling