Draining input stream of dependecny plugin to avoid execution hanging