Handles restart messages