replaced customFds with stdio (same) in spawn
added exit code to shell exit function