exception handling
Merge pull request #38 from leelasn/leela

exception handling