Sending proper ERROR frames, closing conection. Calculating incoming heartbeats etc.