Restart the actor when connection is closed

Instead of the timeout, restart the actor after waiting for 3 seconds
when the connection is closed