Slave not releasing after task finished