Added error handling for Quiz Player