Stop player if the input is invalid