should i close scanner java