possible null pointer exception in exception case
close result set