Prevent shutdown race, and refuse new requests.

Updated version of PR #91.

* Replace channel "up" with "acceptingRequests bool = true"
* Immediate unlock instead of defer in signal handler

Good catch on the deadlock for the second of those two. Thanks!