explicitely close printwriter before exiting from doGet

Change-Id: Iee3c16221cf548b5c828449ece29d1e131e3f79f