rebuild: msg, signal handling, client-side lost connection handling