Add support for interrupting thread during the call