add a simple listener for clean shutdown
doc update