run script after greasepencil release

I am trying to run a script after releasing the greasepencil. is it possible?