Properly pass success bool to async callback.
Added a `treatWarningsAsErrors` option