I don't think there's any code for that. Given that you know it doesn't work, why not disconnect the drive?