crda: Static source code analysis fix

File descriptors should be closed before functions return.

Change-Id: Ifb4c67ea52512a1f0a1be0101c513bb8d74d6db7
CRs-fixed: 547051