check if ->output implements ConsoleOutputInterface ; take into consideration that  can be an array ; errors are removed from  array to prevent duplicate output ; to keep things clean, I moved everything regarding stdout into a separate method