[bugfixes] fixed crash when library face is shutdown and library instance is deallocated
[bugfix] fixed incomplete interface implementation

- implemented onMediaThreadRegistrationFailed in media-stream class