Added error management to RTMP Client