Restart module if requested.