Disable "Upload and then Open Serial Monitor" menu option.