Use defer to close connection
Rename peer to host because, come on, it's not a peer