Probably. But the actual root cause for the issue might be in the library that we use. For some reason its open method returns wrong value sometimes.