When closing config file, check for fclose() return value

Suggested on Issue #59.
Abort program if setting signal handler for SIGINT fails

Suggested on Issue #59.
Ensure MIME Type is set while building redir response