Added a buffer empty check to fahsocket.close() - v0.02