Filtering out arrivals in the past and validating server response so that we throw more meaningful exceptions when the server returns an error.