Do not disconnect at any given time, this might destroy a persistent MySQLi connection for the next request. This might not be the solution for our broken pipe / persistent connection problem and we have to keep an eye on this.