Add error handling to link posting. Fix crashes when posting links.