Add commands to shutdown loop device