Adding stdout and stderr syncing in the console utility class.