Hiding loading indicator. Added error handler.