Bind to finish event