Change sleep to timeToRun - missed it last time.
Added attempts by the peer to reconnect to a missing peer after 1 second even if no further messages were meant to be sent.
Trying to fix random null pointer error in connection_completed.