[#68863168] improves the lcnaf query to return a smaller set of records
[#68863136] adds shutdown hook that can be invoked in jvm