A Middletown police officer spent his last day on the job writing tickets for 14 patrol cars that had expired inspection stickers.