Handle master.err and master.out