Flush input buffer for a client connection when calling connection_teardown()

Flush input buffer(ib_buf) for a client connection when calling connection_teardown().