store and restore initial auto commit value and remove unwanted exception catch boxes

additional pull request to fix code segments as per comments made in the pull request 701 by dkayiwa :)