Added compatibility for nodejs 0.6 httplistener.close()