Fix #108, reattach now works properly

The issue was that .Close() on the write side of the pipe does not kill the pipe as the Read side still block and waits for input.

Because of this, the write never failed and just block. Now that the logs do not need to be kept open all the time (#266), just reinit the list when it is closed.