### Description Resource leak: `sc` is never closed.  ### Steps to reproduce _No response_ ### Excepted behavior Only need to use `try-with-resource` to surround the `sc`. ### Screenshots  ### Additional context _No response_