Added graceful handling for exceptions.