Rewrite print/println forwarding and exception handling.