bug-22168: Cleanup properly on jald shutdown
bug-22277: jal_subscribe should wait for cleanup before it shuts down