Fixes stopping keepalive if unregistered.