Unreachable function cleanup