Automatically flush PrintWriter