Close handlers when process exit itself

Existed handlers not closed when process exit itself. I think, that ``handler.active`` equal to ``False`` when process not exists.