[NUCCORE-1107] Close storeManager in finally block at end of main()