catch potential exception