build source -> sources
close connection when done in websocket tests

previously closing the server would hang because of these in-flight requests
add sane default for -peerAddr