[SPARK-3546] InputStream of ManagedBuffer is not closed and causes running out of file descriptor

These three lines do not need to be within the `try` block, right? I figure it's best to complete the `try` block and have `is` be closed before moving on to further operations.