Library to write graceful service.