closing a buffer sends the SIGHUP signal to the controlling pid
bugfix: support for ~ with in command