Distributed intelligent control of exceptions in reconfigurable manufacturing systems