Minor bugfix

Removed extraneous $result->close() call.