Fix bug in close on RexsterClient.

Check for a null connection before closing as a connection may not have been initialized or may have been nulled in the event of an exception.
Merge remote-tracking branch 'origin/master'