Fix PeerImp::detach for improper closure:
Default argument to detach had graceful = true which could
result in connections not being closed on exit. The graceful option
is now removed from detach. All calls close the socket.
Remove unused beast::get_pointer
Add weak_fn