Close Function

fixes Zintinio/HappyHTTP#2