Fix kqueue and multiple processes on mac os
Add queue and separate function for status print/logic