Fixing some issues with error handling.
Version bump.