Make sure taskexecutor calls processor dispose no matter what

& Fix incorrect connection usage in integrationtestbase