Fix this.opening variable not being updated to false after new file stream is created