(3)Any county sheriff or municipal peace officer providing security for persons involved in judicial proceedings in courts pursuant to subsection (2) of this section shall be immune from civil liability for damages except for gross negligence or reckless, wanton, or intentional misconduct.