Smarter interrupt management