removing all after/before handlers to modules