#10
- added executor threadpool insteadof creating threads manually
- closing session after thread is finished