pdfcrack.sh: handle signals with traps