Close Reader when checking shebang