Check for active connections in each iteration

Check for listeners too