Implement the interruption API.