Fixed synchornization issues in sentinel monitor.