Redirect `stdin` to devnull in cases tty is True. Log command with pid.
Clarify the non blocking popen log messages.