[minor] return unload function for abortion
[minor] Prevent duplicate execution.