Close the input stream after reading the P12 file.

The file may remains opened and causes issues after many pass generations on Linux OS