Fix a couple of clang --analyze warnings.

Entries containing just a \n could cause request_process to dereference bytes
beyond the beginning of an array. log_kill would never report success for
closing an existing handle.
Merge pull request #4 from jorgenpt/analyze-warnings

Fix a couple of clang --analyze warnings.