Waiting for output streams to have finished before exiting grunt.

For more information, check this:
https://groups.google.com/forum/?fromgroups=#!topic/nodejs-dev/Tj_HNQbvtZs