Don't panic on a duplicate signal

Previously, when unilog was signaled to exit twice, the second signal
would cause unilog to panic. Instead, protect against the double-close
by using a nil channel as a sentinel.

My editor also automatically rearranged the imports.