fixed a few pika bugs relating to the connection not closing
properly. am currently pointing at my own pika branch so my
integration tests can actually run