nathanmarz/storm — Issue #137: Cleanup after interrupt
Author: prepor
Created: 2012-02-21 12:20:33+00:00
State: open

Hello!

In current code task's thread is interrupted before call .cleanup. So I can't, for example properly close BerkeleyDB Env.
It's more correctly interrupt threads after giving me a chance to make things right, isn't it?

My exception:
```
com.sleepycat.je.ThreadInterruptedException: (JE 5.0.34) data/titles Channel closed, may be due
to thread interrupt THREAD_INTERRUPTED: InterruptedException may cause incorrect internal
state, unable to continue. Environment is invalid and must be closed.
```