Fixing sleeping on error in DumperJSON.