remove fprintf when fopen() fails