Add API to destroy a callback proc after calling for certain number of times