Changed behaviour to check latest size if file is still opened. If not, we will get the last known size