Find the process that has the tape drive open, and either kill(1) the process or wait for it to finish.
# ps -ef | grep /dev/rmt # kill -9 processID