Cleaned up redundant coding. Fixed exception calls. v. 0.34.

Moved redundant coding methods from try: to finally:.
Fixed exception handling.