Bug fixes, enhancements.

Handle exceptions gracefully.
Handle multiple queries.