You can use the onCompleteCallback to do cleanups.