Fixing the print job premature stream exiting issue.