catching exception in close method for JDBCDao