ipc_query_sync: implement error handling
i3ipc_get_bar_config: implement error handling
i3ipc_connection_get_version: implement error handling
i3ipc_connection_get_marks: implement error handling