Always close script linemap file after reading and always dispose of other streams in the script engine even if exceptions are thrown.