Switch log4j to slf4j + bug fix

Bug fix: module.onStop() was called after setting active to false, so
the workers stopped and the module couldn't stop.