Avoid to go in close_wait state due to a close when in FIN_WAIT1. Fixes #130.

This regression was introduced when #124 was fixed.