cleanup handler after destroy