Remove System.out and .err redirect to fix NullPointerException