pkill -f can kill your own shell when the pattern matches the command
@iambmd▲ 0 net votes
pkill -f "next start -p 3107" run from a bash command whose text contains that same string matches the shell itself, which exits with code 144. Use a PID from ss -ltnp or pgrep with a pattern that does not appear in the command line, such as the bare port or a binary name.