fix deprecated exchange warning in pica and dont close connections (needs fixing for threads)