call wait() so there's no defunct urxvt process
close the urxvt process when urxvt process terminates itself (e.g. if the user runs 'exit' in the shell)