Handle interrupt gracefully