Added graceful shutdown ref: issue #10