update return value in wave_remove()
inser recoverWave command
use my_exit() from WaveDatabase class to abort script