Error handling for new-topic

Change-Id: Ic792366f0550b0cbac6b3dda6e7bb271b537f026