implemented `die` function in bash-template