refactor: Removed closure from logout (#6251)
### Description
Removed the closure from logout to simplify the type checking and in
preparation for our errors refactor
### Testing Instructions
<!--
Give a quick description of steps to test your changes.
-->
Closes TURBO-1520
Co-authored-by: nicholaslyang <Nicholas Yang>