Fixing bug in connection file cleanup.

ipc files were not always being removed.