adds catches for if FILE * is STDIN
prevents `fclose()` from being called on STDIN
Merge branch 'master' of github.com:dopm/admins-friend