Add handler for isWriting & interruptWriting