Remove needless functions and variables
Kill process buffer when buffer is killed