interrupt handling in scripts