Cleaned up environment before spawning shell, removed a debug statement from app