Replaced for loops with forEach.
Method extraction.
Close order now returns the order. This is more symmetric. Adaptations
onf UTs.
Replaced closing and filling task with a generic task, taking a lambda.