fix test_closing_connection_closes_commands
#584
Merged
test_closing_connection_closes_commands
#584