Improve exec middleware logic, closes #70.
0.8.55