Catch exception. Add some documentation.