Restrict shell buffer killing to exit signals only