[feature] handle end event and call
[bump] version 0.4.0