Sheriff's department shut down; sues county