Run and Shutdown functions for SHELL