Merged clean_temp and prog_exit into cleanup, but removing the exit call. Exit should not be called during EXIT as it will overwrite the current exit code. Trapped signals simply call "exit $((128+signal))" to force the execution of EXIT (for non bash-shells). Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>