Force a process exit in afterTask callback (it breaks functional tests)
Fix typo