shell: Return-based error-handling for shell handlers