When the end of a sprint is a hard cutoff point for tasks, agile is done wrong. Just carry unfinished work over - it won't go away, anyway.