removed call to bye() from cback() to avoid crash at end of module