add event_exit()
add popen tests