TLS Error (close_notify)

Hi I am creating a driver for Mobotix integration into Tridium Niagara 4. This is a Java platform and uses BouncyCastle package for HTTPS network stack. I am trying to communicate with a Mobotix camera that has self-signed certificate and TLS v1.3. I am always getting an error that close_notify message was not received before connection is closed and this stops any TLS communication from happening.

Information about Exception is here TlsNoCloseNotifyException (Bouncy Castle Library 1.71 API Specification)

Could you confirm that this message should be sent by device or not?
Opening stream inside web browser works fine.