Fix bug, I hope, don't try to close channels that are already closed, and if something goes wrong then log it.