Release vkbd resources, fix SEGV misery, allow dm-agent to be restarted