Improved git post-receive hook script

* No more sleep()-ing between send() calls. To make sure, messages are sent out
  it suffices to call disconnect() on the client object before exiting.