sweep timed out events. #32
make inactive-timeout configurable. #32