Ensure stdio is drained prior to exit, closes #44
0.6.0