Fixing bug request state never set to closed.

Fixes #40