Add go away handling with improved connection shutdown

Closes #16