You'd have to write a "on successful completion" shell script that ejected the volume in the background, well after the run finishes. Something like:
Code:
#!/bin/bash
(nohup sleep 30;diskutil eject $2) &
(Note I didn't test that and just typed it in, so I could even have the syntax wrong, but hopefully you get the idea.)