Improve local shell.
Change send process signal implementation.
Fix tests.