Added error handling with animations