Only call end callback once
0.5.4