Initialize variables during declaration
Interrupt worker thread when close is called