added slave exception (error and timeout) handling