Properly close all handlers

* FlushFileBuffers before disconnect
* close all handlers in PipeListener Close()
this can just be conn, err := Dial(address)   the := will reuse the err variable and create the conn variable.