handles errors with slow db or plugin