resolve error during module import.

See http://stackoverflow.com/questions/16031985/why-cant-control-leave-a-finally-statement