If an error occurs during a call to ba_close(), the variable ba_errno is set to:
BA_SYSERR
OS error: check errno