Fix some peer disconnect crashes