Remove caption panel when anything bad happens.

Now the captions panel will be shown with captions only after successful
retrieval of captions.