core::rt: Remove Close trait

We will just use RAII for now.
core::rt: Fix a warning about unnecessary mutable variable
wip