Social worker tried to commit mother before she killed herself and children