free loop devices correctly, fixes #12