Fix runlevel related segfaults due mostly to tired coding.