fix missing error code in unload handler

reported from AMARD at https://groups.google.com/forum/#!topic/f3-framework/eyUcSTY5OVY