STATUS MONITORING AND ERROR RECOVERY IN FLEXIBLE MANUFACTURING SYSTEMS