Implement sendError method in MediaHandler

Change-Id: Ifb31ea9ce5159b246c2942b7b42ad7b3c94f0019