Error not suppressed when stream is empty.

In my code, it failed at the fclose() because this->stream['sockets'] was returning null. This isn't suppressed apparently.