If self.con is not set, don't call end on it.
Add a test case for it.
Merge pull request #72 from racker/dont_call_close_if_con_not_set

If self.con is not set, don't call end on it.