Prevent registering on a closed selector. Fixes #27