An approach for handling malfunction agents