Use nextTick only if exception is thrown