add debugging and ->finish() before ->disconnect call