I would couple shell_init and shell_run and put the blank line before return.