bash: added signal trap