Closing gm-client connection after task completes.

OSError: [Errno 24] Too many open files
refs #4751