Get the username before close the result set